package com.yuxl.ai.spg.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Table("ai_spg_relation")
@Schema(description = "知识图谱:关系")
@NoArgsConstructor
@AllArgsConstructor
public class AiSpgRelation {

    @Id
    private Long id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "描述id")
    private Long schemaId;

    @Schema(description = "关系发起方")
    private Long inEntity;

    @Schema(description = "关系接收方")
    private Long outEntity;

    @Schema(description = "属性")
    private String attributes;

    @Schema(description = "描述")
    private String description;

    @Schema(description =  "创建人")
    private Long createBy;

    @Schema(description =  "修改人")
    private Long updateBy;

    @Schema(description =  "创建时间")
    private LocalDateTime createTime;

    @Schema(description =  "修改时间")
    private LocalDateTime updateTime;
}
